/**
 * Created with IntelliJ IDEA.
 * User: skyline{http://my.oschina.net/skyline520}
 * Date: 12-11-20
 * Time: 下午1:53
 * To change this template use File | Settings | File Templates.
 */
Ext.define('Airways.view.system.operation.PopUpPanel',{
    extend:'Ext.form.Panel',
    height: 300,
    width: 600,
    frame:true,
    header:false,
    bodyBorder:false,
    bodyStyle:'padding:20px 10px 0px 10px;',
    defaults: {
        xtype:'textfield',
        labelAlign:'right',
        labelWidth: 100,
        width:500
    } ,
    layout: {
        type: 'vbox'
    },
    initComponent:function (){
        this.items = this.buildItems();
        this.callParent(arguments);
    },
    buildItems:function (){
        return [
            {
                name:'menuName',
                fieldLabel:'菜单名称',
                allowBlank:false
            },{
                name:'menuController',
                fieldLabel:'菜单控制器'
            },{
                name:'menuView',
                fieldLabel:'菜单视图'
            },{
                name:'iconCls',
                fieldLabel:'菜单图标'
            },{
                name:'collapsedCls',
                fieldLabel:'折叠图标'
            },{
                name:'expandedCls',
                fieldLabel:'展开图标'
            },{
                name:'menuLevel',
                fieldLabel:'菜单级别'
            },{
                name:'menuIndex',
                fieldLabel:'菜单排序'
            },{
                fieldLabel:'菜单状态',
                xtype: 'radiogroup',
                columns: 6,
                vertical: true,
                items: [
                    {boxLabel: '启用', name: 'status',inputValue: '1'},
                    {boxLabel: '禁用', name: 'status',inputValue: '0'}
                ]
            },{
                name:'operationId',
                hidden:true
            },{
                name:'parentId',
                hidden:true
            },{
                name:'version',
                hidden:true
            }
        ];
    }
});
